public class fraction {
    public static void main(String[] args) {
        int sly=1;
        double sum=0;
        for (int i = 1; i < 101; i++) {
            sum+=1.0/(double)i*sly;
            sly*=-1;
        }
        System.out.println(sum);
    }
}
